/*
 * Main.fx
 *
 * Created on Oct 10, 2009, 12:03:53 AM
 */
package AlertSystem;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * @author quang
 */

def finishedMessage = "Congratulations ! You have finished your task.";
//def userName = 'generic';
//def userName = 'seyberta';

var screenHeight = bind Window.screenHeight;
var screenWidth = bind Window.screenWidth;

var authBox = AuthenticationBox {};

Stage {
    title: "Alert System 1.0"
    width: bind screenWidth + 20
    height: bind screenHeight + 45
    fullScreen: false
    scene: Scene {
        content: bind if (authBox.isLogin == false)
                        authBox
                 else
                    Controller {
                        userName: authBox.userName
                    }
    }
}


//Stage {
//    title: "Alert System 1.0"
//    width: bind screenWidth + 20
//    height: bind screenHeight + 45
//    fullScreen: false
//    scene: Scene {
//        content:    Controller {
//                        userName: userName
//                    }
//    }
//}